package com.ruoyi.hospital.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 科室信息对象 yl_department
 *
 * @author ruoyi
 * @date 2022-02-17
 */
public class YlDepartment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 科室ID */
    private Long departmentId;

    /** 院区ID */
    @Excel(name = "院区ID")
    private Long areaId;

    /** 上级科室ID */
    @Excel(name = "上级科室ID")
    private Long superId;

    /** 科室名称 */
    @Excel(name = "科室名称")
    private String name;

    /** 科室位置 */
    @Excel(name = "科室位置")
    private String address;

    /** 状态 */
    @Excel(name = "状态")
    private Long state;

    /** 乐观锁 */
    @Excel(name = "乐观锁")
    private Long revision;

    private String areaName;

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String superName;

    public String getSuperName() {
        return superName;
    }

    public void setSuperName(String superName) {
        this.superName = superName;
    }

    public void setDepartmentId(Long departmentId)
    {
        this.departmentId = departmentId;
    }

    public Long getDepartmentId()
    {
        return departmentId;
    }
    public void setAreaId(Long areaId)
    {
        this.areaId = areaId;
    }

    public Long getAreaId()
    {
        return areaId;
    }
    public void setSuperId(Long superId)
    {
        this.superId = superId;
    }

    public Long getSuperId()
    {
        return superId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setState(Long state)
    {
        this.state = state;
    }

    public Long getState()
    {
        return state;
    }
    public void setRevision(Long revision)
    {
        this.revision = revision;
    }

    public Long getRevision()
    {
        return revision;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("departmentId", getDepartmentId())
                .append("areaId", getAreaId())
                .append("superId", getSuperId())
                .append("name", getName())
                .append("address", getAddress())
                .append("state", getState())
                .append("revision", getRevision())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
